﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Entity;
using Domain.Entity.zct;

namespace Domain.IRepository
{
    public interface IDepartmentRepository
    {
        //查询所有部门信息
        Task<List<Department>> GetDepartments();
        //查询所有部门信息：有分页
        Task<FenYe<Department>> GetDepartmentsFenYe(FenYe<Department> fenYe, string? Department_code, string? Department_name, int? Department_status);
        //添加部门
        Task<int> AddDepartment(Department department);
        //根据ID查部门
        Task<Department> GetDepartmentsID(int id);
        //修改部门
        Task<int> UpdateDepartments(Department department);
        //删除部门
        Task<int> DeleteDepartment(int id);
    }
}
